package com.rocksdata.mc.ui.adapter;

import android.view.View;
import android.widget.TextView;
import com.rocksdata.mc.entity.NewsInfo2;
import com.rocksdata.mc.R;

/**
 * Created by 陈堂正 on 2017/5/12.
 */

public class NewsNoImageHolder extends AbsNewsHolder<NewsInfo2> {
    private TextView tvTitle;
    private TextView tvOtherInfo;
    NewsNoImageHolder(View itemView) {
        super(itemView);
        tvTitle = itemView.findViewById(R.id.tv_news_title);
        tvOtherInfo = itemView.findViewById(R.id.tv_news_other_info);
    }

    @Override
    public void bindData(NewsInfo2 info) {
        tvTitle.setText(info.getTitle());
        tvOtherInfo.setText(info.getDepartmentName() + "  " + info.getPublishedTime());
    }
}
